package gui.menu;

import org.pushingpixels.flamingo.api.common.JCommandButton;
import org.pushingpixels.flamingo.api.common.RichTooltip;
import org.pushingpixels.flamingo.api.common.icon.ImageWrapperResizableIcon;

import java.awt.*;

/**
 * User: Szymon Kudzia
 * Date: 15.05.13
 * Time: 15:43
 */
public class RibbonButton extends JCommandButton  {

	public RibbonButton(String iconPath, String toolTipTitle, String toolTipText) {
		this(iconPath, new Dimension(32, 32), toolTipTitle, toolTipText);

	}

	public RibbonButton(String iconPath, Dimension iconSize, String toolTipTitle, String toolTipText) {
		super(ImageWrapperResizableIcon.getIcon(
				ClassLoader.getSystemClassLoader().getResource(iconPath),
				iconSize));

		this.setActionRichTooltip(new RichTooltip(toolTipTitle, toolTipText));
	}
}
